// ----------------------------------
// RSDK Project: Sonic Pocket Reventure
// Script Description: [Object Name]
// Script Author: [YOU]
// ----------------------------------

//-------Aliases-------//

//-------Function declarations-------//

//-------Static Values-------//

//-------Tables-------//


//-------Functions-------//


event ObjectMain
	if object[-1].state == 3
		if object.value0 > 1
			object.value0 = 0
			object.frame ^= 1
		else
			object.value0 ++
		endif
	endif
end event

event ObjectDraw
	DrawSpriteFX(object.frame, FX_FLIP, object.xpos, object.ypos)
end event

event ObjectStartup
    	LoadSpriteSheet("NSZ/Objects.gif")
	SpriteFrame(-28, -6, 56, 13, 1, 94)	//0
	SpriteFrame(-28, -6, 56, 13, 1, 108)	//1
end event

event RSDKDraw
	DrawSpriteFX(0, FX_FLIP, object.xpos, object.ypos)
end event

event RSDKLoad
	LoadSpriteSheet("Global/Display.gif")
	SpriteFrame(-16, -16, 32, 32, 223, 172)
end event